package com.lsh.payment.core.strategy.config;

import com.lsh.payment.core.util.PropertiesUtil;
import org.springframework.stereotype.Component;

/**
 * Project Name: lsh-payment
 * Created by miaozhuang on 16/10/26.
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
@SuppressWarnings("all")
@Component
public class CMBCPayConfig {

    public static final String MAC_ID = "999102115200003";
    //后台服务通信密钥
    public static final String KEY = "611d28c87f1d4c61ab0c5042071effc3";
    //支付
    public static final String PAY_API = "http://140.206.72.238:10011/scanpay-api/api";
    //查询
    public static final String BILL_API = "https://download.swiftpass.cn/gateway";
//    public static final String Bill_SERVICE = "pay.bill.bigMerchant";

    public static final String PAY_NATIVE = "/unifiedOrder20";
    public static final String PAY_QUERY = "/orderQuery20";

//    public static final String Bill_TYPE = "SUCCESS";

    //支付成功
    public static final String TRADE_STATE_SUCCESS = "0000";
//    public static final String TRADE_STATE_ING = "2008";
    public static final String PAY_STATE_SUCCESS = "0000";
//    //转入退款
//    public static final String TRADE_STATE_REFUND = "REFUND";
//    //未支付
//    public static final String TRADE_STATE_NOTPAY = "NOTPAY";
//    //已关闭
//    public static final String TRADE_STATE_CLOSED = "CLOSED";
//    //支付失败(其他原因，如银行返回失败)
//    public static final String TRADE_STATE_PAYERROR = "PAYERROR";

    //商品名
    public static final String GOODS_NAME = "订单支付";
    public static final String CMBC_PAY_TITLE = "支付订单:{0}";

//    public static final String IP = "115.182.215.48";
    public static final String NOTIFY_URL = PropertiesUtil.getValue("cmbc.notify.url");

//    // 00	微信
    public static final String PAY_CHANNEL_WX = "00";
    //01	支付宝
    public static final String PAY_CHANNEL_ALI = "01";

    //ftp文件名 partern
    public static final String CMBC_FTP_FILENAME = "cpos_yf_0199980301_{0}_jn_{1}.txt";
    //下载文件名
    public static final String CMBC_LOCAL_FILENAME = "cmbc_bill_{0}_{1}.txt";
    //SFTP host
    public static final String SFTP_HOST = "sfftp.lakala.com";
    //
    public static final int SFTP_PORT = 2022;
    //用户名
    public static final String SFTP_USERNAME = "lsh";
    //密码
    public static final String SFTP_PWD = "lsh@1114";



}
